package net.zjitc.common.lang;

/**
 * @author 毛钰深
 * @create 2022/1/29
 */
public enum LevelStr {
    LEVEL_ONE_STR("0","一级"),
    LEVEL_TWO_STR("1","二级"),
    LEVEL_THREE_STR("2","三级");

    public final String level;
    public final String msg;

    LevelStr(String level, String msg) {
        this.level = level;
        this.msg = msg;
    }

    public static LevelStr getLevel(String type){
        for (LevelStr levelStr : LevelStr.values()) {
            if (levelStr.level.equals(type)){
                return levelStr;
            }
        }
        return null;
    }
}
